#ifndef DRAWCOR_H
#define DRAWCOR_H
#include <QtGui>

#include <QPixmap>
using namespace std;

class des_cpa;

class drawcor : public QWidget //,public DES_CPA
{
Q_OBJECT

public:
drawcor(QWidget *parent = 0);
~drawcor();
enum SMode {
    s1type,
    s2type,
    s3type,
    s4type,
    s5type,
    s6type,
    s7type,
    s8type,
    s0type
};
SMode currentMode;
//DES_CPA destemp;
//void drawinput(std::vector<std::vector<std::vector<double> > > &input)
//{
// this->drawrelation=input;
//}


//std::vector<double> draw(int &i);

void draw(std::vector<std::vector<double> > &vvinput,int &i);
void setMode(SMode mode);
void draw8(vector<vector<vector<double> > > &vvvtemp);
void draw64(std::vector<double> &vinput,int &i);

private:
int IP[64];
std::vector<double> relationtemp;
std::vector<std::vector<std::vector<double> > > drawrelation;
 int stemp;

void dopainter(QPainter& painter);
void do_s1(QPainter& painter);
void do_s2(QPainter& painter);
void do_s3(QPainter& painter);
void do_s4(QPainter& painter);
void do_s5(QPainter& painter);
void do_s6(QPainter& painter);
void do_s7(QPainter& painter);
void do_s8(QPainter& painter);


protected:
void paintEvent(QPaintEvent *);
//std::vector<double> Date();


};

#endif // DRAWCOR_H
